<script setup lang="ts">

import {useRoute, useRouter} from "vue-router";

const router=useRouter();
const route=useRoute();
console.log('router==>',router);
console.log('route==>',route);

</script>

<template>
  <el-card header="路由实例" class="mb-4">
  <p><el-text>{{route}}</el-text></p>
  </el-card>
  <el-card header="路由器" class="mb-4">
    <el-text line-clamp="10">{{router}}</el-text>
  </el-card>


</template>

<style scoped>

</style>